package com.contract.pojo.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author liw
 * @version 1.0
 * @date 2023/12/13 11:13
 */
@Data
public class FaceMatchResult {

    @JSONField(name = "error_code")
    private Integer errorCode;

    @JSONField(name = "error_msg")
    private String errorMsg;

    @JSONField(name = "log_id")
    private Long logId;

    @JSONField(name = "timestamp")
    private Long timestamp;

    @JSONField(name = "cached")
    private Integer cached;

    @JSONField(name = "result")
    private Result result;

    @Data
    public static class Result {

        // 人脸相似度得分，推荐阈值80分
        @JSONField(name = "score")
        private Double score;

//        @JSONField(name = "face_list")
//        List<FaceToken> faceList;

    }

    @Data
    public static class FaceToken {

        @JSONField(name = "face_token")
        private String faceToken;

    }

}
